package com.jsoft.dao.impl;

import com.jsoft.dao.InstitutyDao;
import com.jsoft.entity.Instituty;
import com.jsoft.utils.DAO;

import java.util.List;

/**
 * @author snkstart
 * @create 2023-02-21 8:51
 */
public class InstitutyDaoImpl extends DAO<Instituty> implements InstitutyDao {


    @Override
    public List<Instituty> selectAll() throws Exception {
        String sql="SELECT id ,NAME FROM instituty";
        return getForList(sql);
    }
}
